package com.zeroone.star.project.user;

import com.zeroone.star.project.dto.user.CreateUserDTO;
import com.zeroone.star.project.dto.user.ModifyUserDTO;
import com.zeroone.star.project.vo.JsonVO;
import com.zeroone.star.project.vo.user.UserDataVo;

/**
 * @program: car-time-bank
 * @description:
 * @author: car
 * @create: 2024-02-06 22:55
 **/

public interface UserApis {

    /**
     * @Author car
     * @Description //TODO 创建用户
     * @Date 23:31 2024/2/6
     * @Param [com.zeroone.star.project.dto.user.CreateUserDTO]
     * @return com.zeroone.star.project.vo.JsonVO
     **/
     JsonVO creatUser(CreateUserDTO createUserDTO);


     /**
      * @Author car
      * @Description //TODO 查询用户 返回前端
      * @Date 23:53 2024/2/6
      * @Param [java.lang.Long]
      * @return com.zeroone.star.project.vo.JsonVO<com.zeroone.star.project.vo.user.UserDataVo>
      **/
    JsonVO<UserDataVo> queryUserData(Long id);



    /**
     * @Author car
     * @Description //TODO 修改用户
     * @Date 23:57 2024/2/6
     * @Param [com.zeroone.star.project.dto.user.ModifyUserDTO]
     * @return com.zeroone.star.project.vo.JsonVO
     **/
    JsonVO modifyUserData(ModifyUserDTO modifyUserDTO);



    /**
     * @Author car
     * @Description //TODO 修改用户状态
     * @Date 0:07 2024/2/7
     * @Param [java.lang.Long, java.lang.Integer]
     * @return com.zeroone.star.project.vo.JsonVO
     **/
    JsonVO setUserStatus(Long id,Integer status);
}
